package com.qqt.csr.im.socketio.constants;

/**
 * @Author: yang hao
 * @Date: 2024/10/15 14:29
 * @Description: 事件常量
 **/
public class EventsConstants {

    /**
     * 连接事件
     */
    public static final String CONNECT = "connect";

    /**
     * 断开事件
     */
    public static final String DISCONNECT = "disconnect";

    /**
     * 清理已不在本机连接的本地缓存
     */
    public static final String CLEAR_LOCAL_CACHE_DISCONNECT = "CLEAR_LOCAL_CACHE_DISCONNECT";

    /**
     * 新会话创建通知
     */
    public static final String NEW_CONVERSATION_EVENT = "new_conversation";

    /**
     * 关闭会话通知
     */
    public static final String CLOSED_CONVERSATION_EVENT = "closed_conversation";

    /**
     * 未读数通知
     */
    public static final String NO_READ_EVENT = "no_read_notice";

    /**
     * 已读通知
     */
    public static final String READ_NOTICE_EVENT = "read_notice";

    /**
     * client to server
     */
    public static final String C2S_MESSAGE_EVENT = "c2s_message";

    /**
     * server to client
     */
    public static final String S2C_MESSAGE_EVENT = "s2c_message";

    /**
     * server to client
     */
    public static final String S2S_MESSAGE_EVENT = "s2s_message";

}
